//
//  WMMusicApiProtocol.h
//  WholeMusic
//
//  Created by quanxiong on 2018/2/23.
//  Copyright © 2018年 quanxiong. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol WMMusicApiProtocol <NSObject>
    /**
     * 使用关键词查询歌曲
     *
     * @param keyword 关键字
     * @param page 页数
     * @param complete 回调
     */
- (void)searchMusicAsync:(NSString *)keyword page:(int)page complete:(void(^)(NSArray *musicList))complete;

    /**
     * 获取某音乐id对应的音乐信息
     *
     * @param musicId musicId
     * @param complete 回调
     */
- (void)getMusicInfoById:(NSString *)musicId complete:(void(^)(id musicInfo))complete;
    
    /**
     * 获取某音乐id对应的音乐链接
     *
     * @param music music
     * @param complete 回调
     */
- (void)getMusicLinkByMusic:(id)music complete:(void(^)(NSString *musicUrl))complete;

    /**
     * 获取音乐id列表对应的音乐链接集合
     *
     * @param musicIds musicIds
     * @param complete 回调
     */
- (void)getMusicLinksByMusics:(NSArray *)musics complete:(void(^)(NSArray<NSString *> *musicUrls))complete;
    
    /**
     * 获取专辑id对应的专辑信息
     *
     * @param albumId albumId
     * @param complete 回调
     */
- (void)getAlbumInfoById:(NSString *)albumId complete:(void(^)(id musicAlbum))complete;

@end
